package com.ftg.learn.service;

import com.ftg.learn.dto.TeacherSaveDto;
import com.ftg.learn.dto.TeacherUpdateDto;
import com.ftg.learn.entity.Teacher;
import com.ftg.learn.entity.TeacherEntity;
import com.ftg.learn.util.PageEx;
import com.ftg.learn.util.R;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author 布衣
 */
public interface TeacherService {

    R<PageEx<TeacherEntity>> getAll(Integer pageNum, Integer pageSize);

    R<Boolean> saveTeacher(TeacherSaveDto teacherEntity);

    R<Boolean> modifyTeacher(TeacherUpdateDto teacherEntity);

    R<Boolean> deleteTeacher(Integer id);
}
